
@import "./global-variables.scss";

*{margin:0;padding:0;border:0;font-style:normal;}
/* 设置滚动条的样式 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
  // border-radius: 6px; /*滚动条的圆角*/
  background-color: #d4dae4; /*滚动条的背景颜色*/
}
::-webkit-scrollbar-thumb:hover {
  background-color: #c2c8d3;
}
::-webkit-scrollbar-track {
  background-color: #fff;
}
// ::-webkit-scrollbar-corner {
//   background: transparent;
// }
html {
  height: 100%;
  box-sizing: border-box;
  color: #333333;
}

body {
  height: 100%;
  background-color: #f2f3f6;
  font-family: 'Microsoft YaHei',
    simsun,
    sans-serif,
    arial,
    'Helvetica Neue',
    Helvetica,
    Arial,
    'Hiragino Sans GB',
    'Heiti SC',
    'WenQuanYi Micro Hei';
}
pre{
  font-family: 'Microsoft YaHei',
    simsun,
    sans-serif,
    arial,
    'Helvetica Neue',
    Helvetica,
    Arial,
    'Hiragino Sans GB',
    'Heiti SC',
    'WenQuanYi Micro Hei';
}

ul,ol,li {
  list-style: none;
}
img{
  vertical-align: middle;
}

.text-ellipsis{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blue-text{
  color: $--color-primary;
}

.red-text{
  color: $lk-red;
}

.gray-text{
  color: $lk-gray;
}

.green-text{
  color: $lk-green;
}

.black-text{
  color: $lk-black;
}



/* -------------- element-ui样式覆写 -------------- */
.el-link{
  font-weight: normal !important;
}

.el-popconfirm__main {
  padding: 1em 0;
}

// el-input 禁止已保存的密码自动填充到输入框
.pwd{
	-webkit-text-security:disc;
  width: 380px;
}
// primary palin button foucs时样式重置
::v-deep .el-button--primary.is-plain:focus {
  color: #0065FB;
  background: #e6f0ff;
  border-color: #99c1fd;
}
::v-deep .el-button--primary.is-plain:focus:hover {
  background: #0065FB;
  border-color: #0065FB;
  color: #FFFFFF;
}

.el-tabs__item {
  vertical-align: top;
}

.el-tag + .el-tag {
  margin-left: 4px;
}


/* -------------- element组件扩展样式 -------------- */
.el-tab-pane-padding {
  padding: 0 10px 10px;
}
.vs-el-skeleton {
  .el-skeleton.is-animated .el-skeleton__item{
    background: linear-gradient(90deg, #F3F5FC 25%, #e6eaf5 37%, #F3F5FC 63%);
    background-size: 400% 100%;
  }
}
.vs-el-skeleton-darkbg {
  .el-skeleton.is-animated .el-skeleton__item{
    background: linear-gradient(90deg, rgba(255, 255, 255, .57) 25%, rgba(255, 255, 255, .68) 37%, rgba(255, 255, 255, .57) 63%);
    background-size: 400% 100%;
  }
}
.el-tag--cyan {
  background-color: #e6fffb;
  border-color: #bff5ef;
  color: #08979c;
}
.el-tag--purple {
  background-color: #f9f0ff;
  border-color: #ecd7ff;
  color: #531dab;
}
.el-tag--orange {
  background-color: #fef5e6;
  border-color: #fcebcd;
  color: #f19d04;
}
.el-tag--notify-1 {
  @extend .el-tag--cyan;
}
.el-tag--notify-3 {
  @extend .el-tag--purple;
}
.el-tag--notify-4 {
  @extend .el-tag--orange;
}

.vs-popover-mini {
  min-width: 50px;
  padding: 8px 12px;
}
.vs-popover-error {
  background-color: #ffeded;
  border-color: #ffdbdb;
  color: $lk-red;
  &.el-popper[x-placement^=bottom] .popper__arrow {
    border-bottom-color: #ffdbdb;
    &::after {
      border-bottom-color: #ffeded;
    }
  }
}
.vs-popover-primary {
  background-color: #f4f9ff;
  border-color: #b3d8ff;
  color: #408dff;
  &.el-popper[x-placement^=bottom] .popper__arrow {
    border-bottom-color: #b3d8ff;
    &::after {
      border-bottom-color: #f4f9ff;
    }
  }
  &.el-popper[x-placement^=right] .popper__arrow {
    border-right-color: #b3d8ff;
    &::after {
      border-right-color: #f4f9ff;
    }
  }
  &.el-popper[x-placement^=top] .popper__arrow {
    border-top-color: #b3d8ff;
    &::after {
      border-top-color: #f4f9ff;
    }
  }
}
.vs-popover-info {
  border-color: #cacccf;
  color: #55585f;
  &.el-popper[x-placement^=bottom] .popper__arrow {
    border-bottom-color: #cacccf;
  }
}
.vs-popover-dark {
  background: #303133;
  border-color: #303133;
  color: #eee;
  &.el-popper[x-placement^=bottom] .popper__arrow {
    border-bottom-color: #303133;
    &:after {
      border-bottom-color: #303133;
    }
  }
  .el-loading-mask {
    background: transparent;
  }
}

.vs-popover-search{
  background: linear-gradient(180deg, #e5e8ef 0%, #FFFFFF 25.1%);
  border: 2px solid #FFFFFF;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
  padding: 0 20px 12px 20px;
}


.vs-dialog-global.lk-dialog {
  .el-dialog {
    background: linear-gradient(180deg, #e9f3fd 0%, #FFFFFF 100px);
    border-top: 4px solid #2468F2;
  }
  &.bg-shield .el-dialog {
    background: #fff url(~@/assets/image/bg/dialog-header.png) no-repeat center top;
    background-size: 100% auto;
  }
  .el-dialog__header {
    text-align: center!important;
    border-bottom: 0 none!important;
    padding: 26px 20px!important;
    .el-dialog__title {
      font-weight: bold;
      font-size: 20px;
    }
  }
  .inner{
    padding: 0 55px 6px;
    font-size: 14px;
    line-height: 1.5;
    .msg {
      font-size: 16px;
      &-center {
        text-align: center;
        padding: 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
    .el-alert {
      margin-top: 20px;
      padding: 10px;
    }
    .el-alert__description {
      margin-top: 0;
    }
  }
  .el-dialog__footer {
    .el-button {
      width: 160px;
      font-size: 14px;
    }
  }
}



// tab右上角操作
.vs-right-top-extra {
  position: absolute;
  top: 0;
  right: 20px;
  line-height: 38px;
  z-index: 10;
}

.pointer-btn{
  cursor: pointer;
}

// el-popover 组件头部样式
.el-popover{
  &.popper-clear{
    padding-top: 0;
  }
}
.popover-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 20px;
  i{
    cursor: pointer;
    font-size: 16px;
  }
}

// 图片图标
.vs-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  &[name=pdf] { background-image: url('~@/assets/image/icon/pdf.png'); }
  &[name=csv] { background-image: url('~@/assets/image/icon/csv.png'); }
  &[name=xlsx] { background-image: url('~@/assets/image/icon/xlsx.png'); }
  &[name=dbf] { background-image: url('~@/assets/image/icon/dbf.png'); background-position: left center;}
  &[name=download] { background-image: url('~@/assets/image/icon/download.png'); }
  &[name=fund] { background-image: url('~@/assets/image/icon/fund.png'); }
  &[name=rank] { background-image: url('~@/assets/image/icon/rank.png'); }
}

.vs-page-error {
  text-align: center;
  padding: 40px 0;
  color: #999;
  p {
    margin-bottom: 1em;
  }
}